using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

/// <summary>
/// 绘制线段
/// </summary>
public class Line : BaseGraph
{
    private Vector3 startPos;
    private Vector3 endPos;

    public float width;
    public Color color;

    public Line(Vector3 sPos, Vector3 ePos)
    {
        startPos = sPos;
        endPos = ePos;
    }

    /// <summary>
    /// 绘制
    /// </summary>
    public override void Draw()
    {
        Handles.color = color;
        Handles.DrawLine(startPos, endPos, width);
    }
}
